package com.yayan.beautyclub.dao;

import java.util.List;
import java.util.Map;

import com.yayan.beautyclub.bean.Keep;

public interface IKeepDao {
	
	/**
	 * 根据uId分页获取用户收藏
	 * @param uId
	 * @param page
	 * @param size
	 * @return
	 * @throws Exception
	 */
	List<Map<String, Object>> getKeepByUserId(long uId, int page, int size) throws Exception;
	
	/**
	 * 根据kId获取具体收藏信息
	 * @param kId
	 * @return
	 * @throws Exception
	 */
	Map<String, Object> getKeepByKeepId(long kId) throws Exception;
	
	/**
	 * 保存用户收藏
	 * @param keep
	 * @return
	 * @throws Exception
	 */
	long save(Keep keep) throws Exception;
	
	/**
	 * 根据kId删除用户收藏
	 * @param kId
	 * @return
	 * @throws Exception
	 */
	boolean delete (long kId) throws Exception;
}
